package cc.rengu.oltp.service.common.constant;

import java.io.Serializable;

/**
 * 配置文件常量定义
 * Created by 王成 on 2020/2/21
 */
public class AppConfigConstant implements Serializable {
    /* ---------------------------------应用配置配置--------------------------------- */
    public static final String APPLICATION_CONF_NODE = "application";
    /* 应用名称 */
    public static final String APPLICATION_NAME = "name";
    /* 应用部署环境 */
    public static final String APPLICATION_ENV = "env";
    /* 应用默认法人行标识 */
    public static final String DEFAULT_INST_ID = "defaultInstId";
    /* 内管相关信息获取方式 */
    public static final String BOMP_SERVICE_CALL_MODE = "bompServiceCallMode";
    /* 商户服务相关信息获取方式 */
    public static final String BSPS_SERVICE_CALL_MODE = "bspsServiceCallMode";
    /* 用户相关信息获取方式 */
    public static final String USER_SERVICE_CALL_MODE = "userServiceCallMode";
    /* 清分清算相关信息获取方式 */
    public static final String CSMC_SERVICE_CALL_MODE = "csmcServiceCallMode";
    /* 交易扩展流水实现类 */
    public static final String EXPAND_TXN_SERVICE_IMPL = "expandTxnServiceImpl";
    /* 应用全局流水号实现类 */
    public static final String GLOBAL_TRACE_SERVICE_IMPL = "globalTraceServiceImpl";
    /* 图片验证码实现类 */
    public static final String IMAGE_CODE_SERVICE_IMPL = "imageCodeServiceImpl";
    /* 安全键盘实现类 */
    public static final String SAFE_KEY_BOARD_SERVICE_IMPL = "safeKeyBoardServiceImpl";
    /* 加密平台调用实现类 */
    public static final String HSM_SERVICE_IMPL = "hsmServiceImpl";

    /* ---------------------------------数据库连接池配置--------------------------------- */
    public static final String DATABASE_CONF_NODE = "database";
    /* 联机平台库连接池名称 */
    public static final String OLTP_POOL_NAME = "oltpPoolName";
    /* 线下收单库连接池名称 */
    public static final String MCPS_POOL_NAME = "mcpsPoolName";
    /* 线上收银台库连接池名称 */
    public static final String OPMS_POOL_NAME = "opmsPoolName";
    /* 商户服务库连接池名称 */
    public static final String BSPS_POOL_NAME = "bspsPoolName";
    /* 智能路由库连接池名称 */
    public static final String ROUTE_POOL_NAME = "routePoolName";
    /* 营销库连接池名称 */
    public static final String MOMP_POOL_NAME = "mompPoolName";
    /* 虚拟账户库连接池名称 */
    public static final String ACCT_POOL_NAME = "acctPoolName";
    /* 运营管理库连接池名称 */
    public static final String MCMP_POOL_NAME = "mcmpPoolName";
    /* 清分清算库连接池名称 */
    public static final String CSMC_POOL_NAME = "csmcPoolName";

    /* ---------------------------------内存数据库配置--------------------------------- */
    public static final String REDIS_CONF_NODE = "redis";
    /* Redis强制刷新标志 */
    public static final String REDIS_FORCE_REFRESH_FLAG = "forceRefleshFlag";
    /* 最大分配的对象数 */
    public static final String REDIS_MAX_TOTAL = "maxTotal";
    /* 最大能够保持idle状态的对象数 */
    public static final String REDIS_MAX_IDLE = "maxIdle";
    /* 最大等待时间 */
    public static final String REDIS_MAX_WAIT_TIME = "maxWaitMillis";
    /* Borrow有效性检查标志 */
    public static final String REDIS_TEST_ON_BORROW = "testOnBorrow";
    /* Return有效性检查标志 */
    public static final String REDIS_TEST_ON_RETURN = "testOnReturn";
    /* 服务器地址 */
    public static final String REDIS_HOST = "host";
    /* 服务器端口 */
    public static final String REDIS_PORT = "port";
    /* 超时时间 */
    public static final String REDIS_TIME_OUT = "timeOut";
    /* 密码 */
    public static final String REDIS_PASSWORD = "password";
    /* 数据库编号 */
    public static final String REDIS_DATABASE = "database";
}
